<?php
include 'load.php';

$op = $_POST['op'];

if ($op == 'ss'){
	$id = $_POST['id'];
	$status = $_POST['status'];
	$snsdb->update('sns_rss_task', array('status'=> $status), array('id'=> $id));
	echo '1';
}else if($op == 'de'){
	$id = $_POST['id'];
	$snsdb->query("delete from  sns_rss_task where id='".$id."'");
	$snsdb->query("delete from sns_task_filter where task_id='".$id."'");
	echo '1';
}else if($op =='detf'){
	$id = $_POST['id'];
	$snsdb->query("delete from sns_task_filter where id='".$id."'");
	echo '1';
}

?>